package cn.edu.sgu.www.mhxysy.entity.prop;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 主题表的过滤条件
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("filter_condition")
public class FilterCondition implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 道具分类ID
     */
    @ApiModelProperty(value = "道具分类ID")
    private Integer propId;

    /**
     * 字段名称
     */
    @ApiModelProperty(value = "字段名称")
    private String name;

    /**
     * 字段值
     */
    @ApiModelProperty(value = "字段值")
    private String value;

    /**
     * 比较符
     */
    @ApiModelProperty(value = "比较符")
    private Integer comparator;

    public String uuid() {
        return IdentifierPrefixes.PREFIX_GLTJ + StringUtils.uuid();
    }

}